
/* =====================================================
   NOTICE BOARD SECTION
   MAHFOOZ ACADEMY INTER COLLEGE
   PREMIUM MAROON / GOLD / WHITE DESIGN
===================================================== */


/* =====================================================
   GLOBAL RESET
===================================================== */

.clean-notice-section,
.clean-notice-section * {
    box-sizing: border-box;
}

.clean-notice-section {
    width: 100%;
    padding: 90px 20px;
    background: #f7f8fa;
    overflow: hidden;
}

.clean-notice-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}


/* =====================================================
   SECTION HEADING - CENTER ALIGN
===================================================== */

.clean-notice-heading {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clean-notice-label {
    display: block;
    margin: 0 0 18px;

    color: #b58a3c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.clean-notice-heading h2 {
    margin: 0;
    padding: 0;

    color: #641536;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    letter-spacing: -1.5px;
}

.clean-notice-heading h2 span {
    color: #b58a3c;
}

.clean-notice-heading p {
    width: 100%;
    max-width: 620px;
    margin: 24px auto 0;

    color: #718096;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    text-align: center;
}


/* =====================================================
   VIEW ALL BUTTON - HIDDEN
===================================================== */

.view-all-notices {
    display: none !important;
}


/* =====================================================
   NOTICE GRID
===================================================== */

.clean-notice-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =====================================================
   NOTICE CARD
   DESKTOP - LONG HORIZONTAL LAYOUT
===================================================== */

.clean-notice-card {
    width: 100%;
    min-width: 0;
    padding: 26px 30px;

    display: grid;
    grid-template-columns: 155px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 30px;

    background: #ffffff;
    border: 1px solid #e8e1d9;
    border-radius: 12px;

    box-shadow: 0 5px 25px rgba(38, 21, 29, 0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.clean-notice-card:hover {
    border-color: #c5a267;
    box-shadow: 0 12px 35px rgba(100, 21, 54, 0.09);
    transform: translateY(-3px);
}


/* =====================================================
   CARD TOP
   DATE AND CATEGORY
===================================================== */

.clean-notice-card-top {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.clean-notice-category {
    display: inline-flex;
    align-items: center;

    padding: 6px 12px;

    color: #641536;
    background: #f8f0f3;
    border: 1px solid #ead8df;
    border-radius: 30px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.clean-notice-date {
    color: #b58a3c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}


/* =====================================================
   NOTICE CONTENT
===================================================== */

.clean-notice-card-content {
    min-width: 0;
}

.clean-notice-card-content h3 {
    margin: 0 0 10px;
    padding: 0;

    color: #641536;
    font-size: 21px;
    font-weight: 750;
    line-height: 1.4;

    overflow-wrap: anywhere;
    word-break: normal;
}

.clean-notice-card-content p {
    margin: 0;
    padding: 0;

    color: #718096;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;

    overflow-wrap: anywhere;
    word-break: normal;
}


/* =====================================================
   CARD FOOTER
===================================================== */

.clean-notice-card-footer {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* =====================================================
   READ NOTICE BUTTON
===================================================== */

.read-notice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 155px;
    padding: 13px 18px;

    color: #ffffff;
    background: #641536;
    border: 1px solid #641536;
    border-radius: 6px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.read-notice-button:hover {
    color: #ffffff;
    background: #b58a3c;
    border-color: #b58a3c;
    transform: translateX(3px);
}

.notice-arrow-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.read-notice-button:hover .notice-arrow-icon {
    transform: translateX(4px);
}


/* =====================================================
   TABLET RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .clean-notice-section {
        padding: 75px 20px;
    }

    .clean-notice-card {
        grid-template-columns: 130px minmax(0, 1fr);
        column-gap: 24px;
        row-gap: 22px;
        padding: 25px;
    }

    .clean-notice-card-footer {
        grid-column: 2;
        justify-content: flex-start;
    }

    .clean-notice-card-content h3 {
        font-size: 19px;
    }

    .clean-notice-card-content p {
        font-size: 14px;
    }

    .read-notice-button {
        min-width: 145px;
    }
}


/* =====================================================
   SMALL TABLET
===================================================== */

@media (max-width: 768px) {

    .clean-notice-section {
        padding: 65px 18px;
    }

    .clean-notice-heading {
        margin-bottom: 40px;
    }

    .clean-notice-label {
        font-size: 11px;
        letter-spacing: 2.5px;
    }

    .clean-notice-heading h2 {
        font-size: 44px;
        letter-spacing: -1px;
    }

    .clean-notice-heading p {
        max-width: 500px;
        margin-top: 18px;
        font-size: 15px;
    }

    .clean-notice-card {
        padding: 22px;
        grid-template-columns: 110px minmax(0, 1fr);
        column-gap: 20px;
    }

    .clean-notice-category {
        padding: 5px 9px;
        font-size: 10px;
    }

    .clean-notice-date {
        font-size: 12px;
    }

    .clean-notice-card-content h3 {
        font-size: 18px;
    }

    .clean-notice-card-content p {
        font-size: 13px;
        line-height: 1.7;
    }
}


/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 600px) {

    .clean-notice-section {
        padding: 55px 15px;
    }

    .clean-notice-container {
        width: 100%;
        max-width: 100%;
    }

    .clean-notice-heading {
        width: 100%;
        max-width: 100%;
        margin-bottom: 35px;
        padding: 0 5px;
    }

    .clean-notice-label {
        margin-bottom: 14px;
        font-size: 10px;
        letter-spacing: 2px;
        text-align: center;
    }

    .clean-notice-heading h2 {
        font-size: 36px;
        line-height: 1.2;
        letter-spacing: -0.8px;
    }

    .clean-notice-heading p {
        max-width: 100%;
        margin-top: 17px;
        font-size: 14px;
        line-height: 1.7;
    }

    .clean-notice-grid {
        gap: 16px;
    }

    .clean-notice-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 20px;
        border-radius: 10px;
    }

    .clean-notice-card-top {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;

        padding-bottom: 15px;
        border-bottom: 1px solid #eee7e2;
    }

    .clean-notice-category {
        max-width: 100%;
        font-size: 10px;
    }

    .clean-notice-date {
        font-size: 11px;
    }

    .clean-notice-card-content {
        width: 100%;
        padding: 18px 0 20px;
    }

    .clean-notice-card-content h3 {
        margin-bottom: 9px;
        font-size: 17px;
        line-height: 1.45;
    }

    .clean-notice-card-content p {
        font-size: 13px;
        line-height: 1.75;
    }

    .clean-notice-card-footer {
        width: 100%;
        display: block;
        padding: 0;
    }

    .read-notice-button {
        width: 100%;
        min-width: 0;
        padding: 12px 15px;
        font-size: 12px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .clean-notice-section {
        padding: 45px 12px;
    }

    .clean-notice-heading h2 {
        font-size: 31px;
    }

    .clean-notice-heading p {
        font-size: 13px;
    }

    .clean-notice-card {
        padding: 17px;
    }

    .clean-notice-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .clean-notice-card-content h3 {
        font-size: 16px;
    }

    .clean-notice-card-content p {
        font-size: 12px;
    }
}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 340px) {

    .clean-notice-heading h2 {
        font-size: 28px;
    }

    .clean-notice-label {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .clean-notice-card {
        padding: 15px;
    }

    .read-notice-button {
        font-size: 11px;
    }
}